
/* <<< COPYRIGHT START >>>
 * Copyright 2006-Present OxygenSoftwareLibrary.com
 * Licensed under the GNU Lesser General Public License.
 * http://www.gnu.org/licenses/lgpl.html
 * 
 * @author: Ugorji Dick-Nwoke
 * <<< COPYRIGHT END >>>
 */


package oxygen.wiki.extensions;

import oxygen.util.SetURLConnectionTimeoutPlugin;
import oxygen.wiki.WikiConstants;
import oxygen.wiki.WikiEngine;
import oxygen.wiki.WikiLocal;

public class SetURLConnectionTimeoutWikiPlugin extends SetURLConnectionTimeoutPlugin {
  protected long getReadTimeout() {
    WikiEngine engine = WikiLocal.getWikiEngine();
    return Long.parseLong(engine.getProperty(WikiConstants.READ_TIMEOUT_KEY, null));
  }
  
  protected long getConnectTimeout() {
    WikiEngine engine = WikiLocal.getWikiEngine();
    return Long.parseLong(engine.getProperty(WikiConstants.CONNECT_TIMEOUT_KEY, null));
  }
  
}

